/*
 * @Author: FanWeiHua
 * @Date: 2021-05-21 15:33:20
 * @LastEditTime: 2021-06-27 15:03:19
 * @Description: 发布环境，命令式选择项目，启动
 */
const exec = require('child_process').execSync;
const { webpackRunInit } = require('./common');
/**
 * 初始化
 */
const init = () => {
  webpackRunInit(() => {
    // 发布环境启动
    exec('webpack --config webpack/webpack.prod.js --progress --color', { stdio: 'inherit' });
  });
};
/**
 * 初始化
 */
init();
